<?php

declare(strict_types=1);
/**
 * This file is part of Hyperf.
 *
 * @link     https://www.hyperf.io
 * @document https://hyperf.wiki
 * @contact  group@hyperf.io
 * @license  https://github.com/hyperf/hyperf/blob/master/LICENSE
 */

namespace HyperfTest\Cases;

use Yolo\Test\AbstractTest;

/**
 * UserTest.
 * @date 2024/1/26
 * @internal
 * @coversNothing
 */
class UserTest extends AbstractTest
{
    protected string $service = 'Server';

    private array $metadata = [
        'merchantId' => 1,
        'accountId' => 123,
    ];

    public function testIndex()
    {
        $response = $this->invokeByNs('Tunnel', 'Test', [
            'id' => 456,
            'nickname' => 'Hello',
        ], $this->metadata);

        $response->assertOk();
    }
}
